project(opencv)

#add_executable(opencv main.cpp)

#install(TARGETS opencv RUNTIME DESTINATION bin)


#setting up
set(SOURCES sources/svm.cpp sources/template_matching.cpp sources/video.cpp sources/test.cpp sources/GHT.cpp sources/ARDPDetector.cpp)
include_directories(./include)

add_executable(opencv sources/main.cpp ${SOURCES}) 

add_library(ardp SHARED sources/c_interface.cpp ${SOURCES}) 

find_package( OpenCV REQUIRED )

target_link_libraries( opencv ${OpenCV_LIBS} )
target_link_libraries( ardp ${OpenCV_LIBS} )

#install(TARGETS opencv_test RUNTIME DESTINATION bin)